#include <R.h>
#include <R_ext/Rdynload.h>
#include <Rinternals.h>
#include <stdlib.h>  // for NULL

/* .Call calls */
extern SEXP glue_(SEXP, SEXP);
extern SEXP trim_(SEXP);

static const R_CallMethodDef CallEntries[] = {{"glue_", (DL_FUNC)&glue_, 4},
                                              {"trim_", (DL_FUNC)&trim_, 1},
                                              {NULL, NULL, 0}};

void R_init_glue(DllInfo *dll) {
  R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
  R_useDynamicSymbols(dll, FALSE);
}
